/*
 * $Id$
 */
package corejs.parser;

import corejs.Token;
import corejs.expr.Expression;

import static corejs.JsTokenType.RIGHT_PAREN;
/**
 *
 * @author myang
 */
public class GroupingParser implements PrefixParser {

   @Override
   public Expression expr(final PrattParser parser, final Token tk) {
      final Expression expr = parser.expr();
      parser.nextToken(RIGHT_PAREN);
      return expr;
   }
   
}
